from socket import *

tcpClientSocket = socket(AF_INET, SOCK_STREAM)

serAddr = ('192.168.0.88', 8080)

tcpClientSocket.connect(serAddr)

recvData = tcpClientSocket.recv(1024)

print("recvData:%s"%recvData.decode('gbk'))

cmd = input(">>:").strip().encode('gbk')
if cmd is not None and cmd != 'cmd'.encode('gbk'):
  tcpClientSocket.send(cmd)
  
tcpClientSocket.close()


